package com.woniuxy.yuekeuser.service;

import com.woniuxy.yuekeuser.model.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.yuekeuser.model.TOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Freedom
 * @since 2020-11-03
 */
public interface IOrderService extends IService<Order> {
    //将订单信息插入到订单表中
    public int placeOrder(TOrder tOrder);

    public List<Order> findBusinesOrder(int userId, String state,
                                        int index, int size);

    public int findBusinesOrderCount(int userId, String state);

    public List<Order> findOrderall();

    public void deleteOrderByOrder(Order order);
    public void changeOrderState(TOrder order);

}
